package java6681.lesson07;

class AreaTools6681 {
    public double getArea(double radius){
        return radius * 3.14;
    }

    public  double getArea(double length,double width){
        return length * width;
    }
    public  int getArea(int length,int width){
        return length * width;
    }
    public  double getArea(double length,double width,double height){
        return  2*((length * width)+(length*height)+(width*height));
    }

}
public class AreaTools6681Demo{
    public static void main(String[] args) {
        AreaTools6681 areaTools6681 = new AreaTools6681();
        System.out.println("半径5.7，圆的面积："+areaTools6681.getArea(5.7));;
        System.out.println("长3.6 ,宽9.5,长方形的面积:" + areaTools6681.getArea(3.6,9.5));
        System.out.println("长12,宽24, 长方形的面积:" + areaTools6681.getArea(12,24));
        System.out.println("半径5.7, 圆的面积:" + areaTools6681.getArea(1.3,2.8,3.3));
    }
}
